<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="baidu-site-verification" content="XwzTgI8O99" /><!-- 百度站长验证 -->
	<meta content="太阳网,太阳高效搜索,太陽,活动报名,网赚,太阳,平等,创意,艰苦奋斗,太阳银行,二次元,sunbank,sun.as,社会主义,共产搜索,共享搜索,新互联网词典,互联网词典,sun," name="keywords">
	<link rel="Bookmark" href="http://ou05z6sev.bkt.clouddn.com/logo.png" >
	<!-- css -->
    <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap.css"/>
   	<link rel="stylesheet" type="text/css" href="__CSS__/indexsun.css"/>
   	<link rel="stylesheet" type="text/css" href="__CSS__/page.css"/>
	<link rel="stylesheet" type="text/css" href="__CSS__/shake.css"/>
	<link rel="stylesheet" type="text/css" href="__CSS__/bili.css"/>
	<link rel="stylesheet" type="text/css" href="__CSS__/yj_block.css"/>
    <script src="__CSS__/schoolList2.js"></script>
	<!-- js -->
    <script src="https://cdn.staticfile.org/jquery/3.1.1/jquery.min.js"></script>
	<title>太阳</title>
</head>
<style>
	.outside_line{
    border-image: linear-gradient(to right, red, orange,yellow,green,blue,violet) 1 1;position:absolute;width: 823px;top:5px;height: 300px;}
	.inside_line{
	    border: 2px solid;
    	border-image: linear-gradient(to top, red, orange,yellow,green,blue,violet) 1 1;
    	border-top: none;
    	border-bottom: none;
    	padding: 10px 25px;
    	position: relative;
        border-right: none;
        left:-1px;top:-2px;    width: 817px;height: 302px;
    }
	.outside_line_default{border:1px solid #fff;position:absolute;width: 812px;
    height: 306px;}
	.inside_line_default{border:1px solid #fff;padding: 10px 25px;position:relative;left:-4px;top:-4px;    width: 812px;
    height: 306px;}
</style>
<body>
	<div class="container">
		<div class="row ss0">
			<div class="col-md-12">
				<div class="col-md-1">
					<img src="__IMG__/logo.png" width="50" height="50"  alt="">
				</div>
				<div class="col-md-8 navsun">
				  	<ul>
				      	<!-- 遍历出所有分类 -->
				    <!-- 遍历出所有分类   经典@kw    -->
				      	<volist name="navres" id="vo">
					      	<li class="col-md-1">
					      		<a title="{$vo.name}" href="__MODULE__/<if condition="$vo['type'] eq 1">Search<elseif condition="$vo['type'] eq 4"/>Know<elseif condition="$vo['type'] eq 5"/>Down<elseif condition="$vo['type'] eq 6"/>Video</if>/index/cateid/{$vo.id}" class="">{$vo.name}</a><!-- 必须连着不然有20%这样的标记 -->
					      	</li>
					   <!--    	<li class="col-md-1"><a href="https://www.zhihu.com" target="_blank">知乎</a></li>
					      	<li  class="col-md-1"><a href="https://wenku.baidu.com/" target="_blank">文库</a></li>
					      	<li  class="col-md-1"><a href="http://www.58pic.com/" target="_blank">素材</a></li>
					      	<li  class="col-md-1"><a href="http://www.ximalaya.com/explore/" target="_blank">FM</a></li>
					      	<li  class="col-md-1"><a href="	      	http://www.qidian.com/" target="_blank">小说</a></li>
					      	<li  class="col-md-1"><a href="http://map.baidu.com/" target="_blank">地图</a></li>
				      		<li  class="col-md-2"><a href="https://www.bilibili.com/" target="_blank">视频</a></li> -->
				      	</volist>
				    </ul>
				</div>
				<div class="col-md-1 navsun1"><a href="{:U('Index/index')}" target="_blank" > {$Think.lang.home}</a></div>
				<if condition="session('uid')">
					<div class="col-md-2 navsun1"> <a target="_blank" href="{:U('Person/index')}">{$Think.session.username}</a> | <a href="{:U('loginout')}"> {$Think.lang.exit}</a></div>
					<!-- <div class="col-md-1 navsun1"> <a href="{:U('loginout')}"> 退 出</a></div> -->
				<else />
					<div class="col-md-1 navsun1"> <a href="{:U('Login/login')}">&nbsp &nbsp &nbsp{$Think.lang.login}</a></div>
				</if>
			</div>
		</div>
		<div class="row ss1">
			<div class="col-md-1"></div>
			<div class="col-md-7">
				<div class="search2 ">
					<!-- action 到当前模块下的控制器   方法是get $_GET -->
				   <form id="search" name="search" method="get" action="__MODULE__/Search/">
				   <input type="text" class="text pngFix" name="kws" id="kws" value="{$kw}"/>
				 <!--   	<?php  echo($kw)  ?>	 -->
			<!-- 	    <div class="select pngFix">
				     <select id="rid" style="display: block" name="cateid">
				                             <option value="1" selected="selected">新闻</option>
				                             <option value="2" >网页</option>
				                             <option value="3" >贴吧</option>
				                             <option value="4" >百科</option>
				                         </select>
				    </div> -->
				    <span class="enter-input2">
				    	<input type="submit" title="搜索" style="cursor:pointer;" value=""/>
					</form>
				</div>
				<br>
			 </div>
			<div class="col-md-3"></div>
			<div class="col-md-1"></div>
		</div>
			<br>
		<div class="row">
			<div class="col-md-1"></div>
			<div class="col-md-7 boderkw">
				<!--微收藏  -->
				<div class="col-md-12 weics">
					<div class="panel panel-default">
					  <div style="background: #f5f5f5;border: 1px solid #ddd;overflow: hidden;">
					    <ul>
					    	<if condition="$logined eq 1">
					    		<volist name="user_block" id="vo">
						    		<if condition="$i eq 2">
						    			<li class="yj_com cur" id="recent" onclick="yj_tab(this.id)">最近搜索</li>
						    		</if>
						    		<li class="yj_com" id="blk_{$vo.block_id}" onclick="yj_tab(this.id)">{$vo.block_title}</li>
						    	</volist>
					    		<else/>
					    		<li class="yj_com cur"  onclick="alert('请先登录')">常用搜索</li>
					    		<li class="yj_com"  onclick="alert('请先登录')">最近搜索</li>
					    	</if>
					    	<li class="yj_com1" id="yj_plus">+</li>
					    	<input type="hidden" name="logined" id="logined" value="{$logined}">
					    </ul>
					  </div>
					  <div class="kw_content">
					  	<volist name="site_hot_word" id="vo">
					  		<a href="?kws={$vo.key_words}" class="list_url">
							  	<div class="kw_item">
							  		{$vo.key_words}
							  	</div>
						  	</a>
						</volist>
						<div class="edit_item" id="edit_item" style="display: none;">
					  		编辑热词
					  	</div>
					  </div>
					</div>
				</div>
				<br>
				<!-- 排序 -->
				<div class=" sortsun  col-md-12">
					<div class="sortsun1  col-md-12">
						<div>
							<ul>
								<li class="com">  &nbsp &nbsp &nbsp 全量排序</li>
								<li class="com2"> &nbsp &nbsp &nbsp 旗帜数</li>
								<li class="com2"> &nbsp &nbsp &nbsp 圣杯词</li>
								<li class="com2"> &nbsp &nbsp &nbsp 令牌数</li>
									<li class="com2"> &nbsp &nbsp &nbsp 分享数</li>
								<li class="com2"> &nbsp &nbsp &nbsp &nbsp &nbsp浏览数</li>
								<li class="com2"> &nbsp &nbsp &nbsp &nbsp最新添加</li>
							<!-- 	<li class="com3">&nbsp  &nbsp</li> -->
							</ul>
						</div>
					</div>
					<div class="sortsun2  col-md-12">
						<div>
							<ul>
								<li class="com">
									<img src="__IMG__/logo/hot.gif" alt=""  >
									<span onclick="change_tab('my_col')"><a href="{:U('Search/index',array('kws'=>$kw,'type'=>'my_col'))}">我的收藏&nbsp</a>
										<span id="col_count" class="nums">{$col_count}
										</span>
									</span></li>
								<li class="comimg"></li>
								<li class="com2"> &nbsp &nbsp &nbsp
									<span onclick="change_tab('my_add')">
									 	<a href="{:U('Search/index',array('kws'=>$kw,'type'=>'my_add'))}">我的添加&nbsp</a>
										<span id="col_count" class="nums">{$add_count}
										</span>
									</span>
								</li>
								<!-- <li class="com2">&nbsp &nbsp &nbsp 红包数</li> -->
								<li class="com2">&nbsp &nbsp &nbsp 点赞数</li>
								<li class="com2">&nbsp &nbsp &nbsp 地&nbsp域</li>
					<!-- 			<li class="com2">&nbsp &nbsp &nbsp 标签数</li> -->
						<!-- 		<li class="com2">&nbsp &nbsp &nbsp 评论数</li> -->
							</ul>
						</div>
					</div>
				</div>
				<!--  -->
				<div class="">
					<ul class="seakw">
					<!-- 圣杯显示   kw 您所搜索的词其行意已接近最佳认证状态，请牢记20个以上层级 -->
							<div class="shake shake-slow col-md-12">
										<button class="btn-primaryasheng col-md-12" ><a >您所搜索的词,其行意已接近最佳认知模型，建议收藏或记意20个左右的层级...</a></button>
							</div>
	                        <!-- 大学占比 -->
	                        <div class="col-md-12 daxue0">
							     <div class="col-md-12">
										<if condition="$top_school neq ''">
										<div class="col-md-4 daxue1">该搜索词被 &nbsp<font color="#12ADFF"><b>
											{$top_school}
										</b></font> &nbsp承包</div>
										<else/>
										<div class="col-md-4 daxue1"><font color="#12ADFF"><b>
											该搜索词还没有大学承包
										</b></font></div>
										</if>
									<div class="col-md-3"><font color="#999">总收藏数：</font><font color="#12ADFF"><b><if condition="$col_sum gt 0">{$col_sum}<else/>0</if></b> </font></div>
									<div class="col-md-5">我的排名：<span id="" class="nums"><if condition="$crt_rank gt 0">{$crt_rank}<else/>0</if>										</span> &nbsp  &nbsp 收藏数：<span id="" class="nums"><if condition="$my_col_sum gt 0">{$my_col_sum}<else/>0</if>										</span></div>
							     </div>
							     <div class="col-md-12 daxue">
									<div class="col-md-3">总添加人数：<span id="" class="nums">
									<if condition="$total_add gt 0">{$total_add}<else/>0</if>
									</span>人</div>
									<div class="col-md-9">
											<ul class="daul">
												<volist name="user_rank" id="vo"  offset="0" length='3' key='i'>
												<if condition="$i eq 1">
													<span class=""><img src="__IMG__/k/x{$i}.png"  height="28" width"25" alt="" />{$vo.author} <div class="progress" style="height: 13px;">&nbsp 
														<if condition="$vo.rate gt 95">
															<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="30" style="width: 96%;height: 13px;line-height: 14px;">{$vo.rate}%</div>
															<else/>
															<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="30" style="width: {$vo.rate}%;height: 13px;line-height: 14px;">{$vo.rate}%</div>
														</if></div></span>
												<elseif condition="$i eq 2"/>
												<span class=""><img src="__IMG__/k/x{$i}.png"  height="28" width"25" alt="" />{$vo.author} <div class="progress" style="height: 13px;">&nbsp <div class="progress-bar progress-bar-warning " role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="30" style="width: {$vo.rate}%;height: 13px;line-height: 14px;">{$vo.rate}%</div></div></span>
												<else/>
												<span class=""><img src="__IMG__/k/x{$i}.png"  height="28" width"25" alt="" />{$vo.author} <div class="progress" style="height: 13px;">&nbsp <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="30" style="width: {$vo.rate}%;height: 13px;line-height: 14px;">{$vo.rate}%</div></div></span>
												</if>
												
												</volist>
											</ul>
									</div>
							     </div>
	                        </div>
	                        <!--  -->
						<volist name="listas" id="ac" offset="0" length=''>
							<li class="seakw li col-md-12" style="height:341px;width:811px;padding:0px;margin-left:-25px;">
						<if condition="$ac[sort] gt 0">
							<div class="outside_line">
							<!-- 默认图片 -->
							<div class="inside_line">
							<else/>
							<div class="outside_line_default">
							<!-- 默认图片 -->
							<div class="inside_line_default">
						</if>
							<div class="p0">
					<a href="">
                    <img  width="120" height="75"  src="__SLOGO__/{$ac.img}"
						  onerror="javascript:this.src='http://ou05z6sev.bkt.clouddn.com/mr.jpg'" />
						<script type="text/javascript">
							if (window.navigator.userAgent.indexOf("MSIE")>=1) {
								function IsExist(url)
								{
								x = new ActiveXObject("Microsoft.XMLHTTP")
								//x.open("HEAD",url,false)
								x.send()
								return x.status==200
								}
								alert(IsExist("http://ou05z6sev.bkt.clouddn.com/mr.jpg"))
							}
						</script>
					</a>
							</div>
							<div class="p01">
								<div class="p1">
									<div class="p11">
										<div class="p111"><a href="" target="_blank" ></a> <a href="{$ac.link}"  target="_blank">{$ac.title}</a> </div>
										<div class="p112"><img src="__IMG__/logo/zp.png"  height="23" width"23" alt="" /> &nbsp网站类型：{$ac.trait} </div>
										<!-- 我的收藏 -->
										<div class="p112a">
											<img id="i{$ac.id}" src="__IMG__/logo/{:is_collected($ac['id'])}"  width="22"  alt=""
											<if condition="is_collected_res($ac['id']) eq 1">
											onclick="yj_de_collection({$ac.id})"
											<else/>onclick="yj_collection({$ac.id})"</if> >  ：
											<span id="c{$ac.id}">{$ac.col_count}</span>
										 </div>
										<!--  -->
										<div class="p113"><a href="{:U('Job/detail',array('id'=>$pl['id']))}">{$pl.companyname}</a></div>
										<div class="p114"><img src="__IMG__/logo/ax1.jpg"  height="17" width"17" alt="" /> ：<a > {$pl.point}</a></div>
									</div>
									<div class="p12">
										<div class="p121">
											<a href="{$ac.link}" target="_blank">{$ac.link}</a></div>
											<!-- 有缺陷 不能加网址两个字 -->
										<div class="p122">
										</div>
										<div class="p123">
										 	<a href="{:U('Zd/index',array('kws'=>$kw,'sid'=>$ac[id]))}" title="置顶" target="_blank"><img src="__IMG__/logo/sza.png"  width="25"  alt=""></a>
										 	<img src="__IMG__/logo/shan.png"  width="22"  alt="">
										 	<img src="__IMG__/logo/fenx.png"  width="22"  alt="">&nbsp
										 	<img src="__IMG__/logo/ping.png"  width="22"  alt="">&nbsp
											<!-- 是否是手机移动端 -->
										 		<if condition="$ac[mob] eq 1 ">
										 			<img src="__IMG__/logo/mob1.png"  width="22"  alt="">
												<else />
											  	</if>
									 		<!--  -->
											<!-- 是否是支持多屏 -->
										 		<if condition="$ac[mob] eq 2 ">
										 			<img src="__IMG__/logo/duo2.jpg"  width="25"  alt="">
												<else />
											  	</if>
									 		<!--  -->
										<a href=""> </a></div>
										<div class="p123a"><img src="__IMG__/logo/shouc.png" height="21" width="21"  alt=""> ：</div>
										<!-- 我的举报 -->
										<div class="p124">
										<!-- 	<img id="i{$ac.id}" src="__IMG__/logo/{:is_collected($ac['id'])}"  width="22"  alt="" onclick="yj_collection({$ac.id})"> ：
											<span id="c{$ac.id}">{$ac.col_count}</span>  -->
											<img src="__IMG__/logo/gao.png"  height="" width="20" alt="" /> ： <a>{$ac.click}</a>
										</div>
										<!--  -->
									</div>
								</div>
								<div class="p2">
									<div class="p21"></div>
									<div class="p22a">
										网页描述：{$ac.content}
									</div>
								</div>
							</div>
							<div class="p02">
								<div class="p021">
									<span >发布人：<a href="" class="faburen">{$ac.author}</a></span>
									<span> <i title="太阳网个人认证 " class="W_icon icon_approve"></i></span>
									<span> <i title="太阳网会员 " class="W_icon icon_member6"></i></span>
									<span>&nbsp &nbsp &nbsp &nbsp</span>
									<span>&nbsp &nbsp &nbsp &nbsp</span>
									<span>&nbsp &nbsp &nbsp &nbsp</span>
									<span><img src="__IMG__/logo/rr.png" width="22"  alt=""> </span>
									<span><img src="__IMG__/logo/wei.jpg" width="22"  alt=""> </span>
									<span><img src="__IMG__/logo/weip.png" width="22"  alt=""> </span>
									<span><img src="__IMG__/logo/qqh.png"  width="22"  alt=""> </span>
									<span><img src="__IMG__/logo/qq.png"  width="22"  alt=""> </span>
									<span><img src="__IMG__/logo/weix.png"  width="22"  alt=""> </span>
								</div>
								<div class="p022"><img src="__IMG__/logo/sj.png"  height="20" width"20" alt="" /> {$ac.time|date="Y-m-d",### }</div>
							</div>
							<div class="p03">
									<div>
										<span>标 &nbsp&nbsp签：</span>
										<span>&nbsp &nbsp &nbsp &nbsp</span>
										<span>&nbsp &nbsp &nbsp &nbsp</span>
										<span>&nbsp &nbsp &nbsp &nbsp</span>
										<span><img src="__IMG__/logo/shang.jpg" width="23"  alt=""> &nbsp</span>
										<span>&nbsp &nbsp </span>
										<span><img src="__IMG__/logo/hong.jpg"  width="17"  alt=""> &nbsp&nbsp</span>
										<span><img src="__IMG__/logo/beizi.png"  width="21"  alt=""> &nbsp</span>
										<span><img src="__IMG__/logo/ling.jpg"  width="21"  alt=""> &nbsp </span>
									</div>
									<div class="p22" style="height: 112px;">
									<div>
									<if condition="$ac.tags eq '' ">
										<else />
										<a class="mark1 c66dfff-bg" href="">{$ac.tags}</a>
										 </if>
										<!--    	<a style="display: none;"></a> -->
										<if condition="$ac.tags2 eq '' ">
										<else />
										<a class="mark1 cf09-bg" href="">{$ac.tags2}</a></if>
										<if condition="$ac.tags3 eq '' ">
										<else />
										<a class="mark1 cfc0-bg" href="">{$ac.tags3}</a></if>
										<if condition="$ac.tags4 eq '' ">
										<else />
										<a class="mark1 c9c0-bg" href="">{$ac.tags4}</a></if>
										<if condition="$ac.tags5 eq '' ">
										<else />
										<a class="mark1 cf60-bg" href="">{$ac.tags5}</a></if>
										<if condition="$ac.tags6 eq '' ">
										<else />
										<a class="mark1 c204363-bg" href="">{$ac.tags6}</a></if>
										<if condition="$ac.tags7 eq '' ">
										<else />
										<a class="mark1 c653366-bg" href="">{$ac.tags7}</a></if>
										<if condition="$ac.tags8 eq '' ">
										<else />
										<a class="mark1 cc7c7c7-bg" href="">{$ac.tags8}</a></if>
										<if condition="$ac.tags9 eq '' ">
										<else />
										<a class="mark1 cc7c7c7-bg1" href="">{$ac.tags9}</a></if>
										<if condition="$ac.tags10 eq '' ">
										<else />
										<a class="mark1 cc7c7c7-bg2" href="">{$ac.tags10}</a></if>
									</div>
									<br>
									<div class="p22p" id="div_{$ac.id}">
										<span id="sp_{$ac.id}" style="float: left;">相同链接词:共{$ac.near_count}个</span>
											<volist name="ac.near_list" id="ve">
												<div style="width: 64px;float: left;line-height: 1;padding-top: 10px;text-align: center;">
													<a href="javascript:" class="btn btn-success btn-sm btn-outline btn-round  yj_bg_{$i}" style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;color: white;width: 64px;">{$ve.title}
                                   		 			</a>
                                   		 			<span>{$ve.col_count}</span>
												</div>
										</volist>&nbsp;&nbsp;&nbsp;
                                   		 <a href="javascript:" id="ref_{$ac.id}" style="color: red;" onclick="yj_refresh(this)">刷新</a>
									</div>
									</div>
							</div>
							</div>
							</div>
						</li>
						 </volist>
					</ul>
				<div class="seakw2" style="display: block;">
					<br>
					<div>
						<if condition="$kw neq ''  && $usersvip[0][vip] egt 1">
							<if condition="$usersvip[0][vip] egt 1 ">
						<div class="app-camgjc">添加搜索词，添加后记得刷新 > <button class="btn-primarya" ><a target="_blank" href="__CONTROLLER__/addo/<?php echo $cateaddoid[0][id];?>">+</a></button>
							</div>
						<else />
						   <div></div>
					  	</if>
					</div>
					<br>
					<div>
						<if condition="$usersvip[0][vip] eq 1 && $kw neq ''  ">
						<div class="app-camgjcs">还没有创建链接，赶快添加吧  > <button class="btn-primarya" ><a target="_blank" href="__CONTROLLER__/addone/<?php echo $ret[''];?>">+</a></button>
							</div>
						<else />
						   <div></div>
					  	</if>
					</div>
						<div>
						<if condition="$usersvip[0][vip] egt 2 && $kw neq ''  ">
						<div class="app-camgjcsr">还没有创建链接，赶快添加吧  > <button class="btn-primarya" ><a target="_blank" href="__CONTROLLER__/add/<?php echo $ret[''];?>">+</a></button>
							</div>
						<else />
						   <div></div>
					  	</if>
					</div>
						<br>
							<div class="pagekw">{$page}</div>
				<!-- 		<div class="viciao" >
							<span class="disabled">< 上一页<span class="current">1<a href="#?page=2">2</a><a href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a href="#?page=2">下一页 ></a>
						</div> -->
				</div>
					</div>
				<!-- 添加内容加判断,不同会员不同页面，不同显示效果 @kw
					 添加按钮需有分类id 并且传给add页面
				-->
		<!-- 		<div id="tianjiakw">ok</div> -->
				<!-- jquery弹出添加框 -->
			</div>
			<div class="col-md-4">
				<div>相关联系  &nbsp |  &nbsp Related contact</div>
				<br>
				<div>
						<li style="float: left;">
							<div class="addc1"><a href=""><img src="__IMG__/san1.jpg" height="75" width="75" class="preview1"></a></div>
							<div class="addc2">太阳网</div>
							<div class="addc3">亚洲最高效的搜索平台</div>
						</li>
						<volist name="listasc" id="acc" offset="0" length='7'>
							<li style="float: left;">
								<div class="addc1"><a href=""><img src="__IMG__/san1.jpg" height="75" width="75" class="preview1"></a></div>
								<div class="addc2">{$acc.title}</div>
								<div class="addc3">亚洲最高效的搜索平台</div>
							</li>
						</volist>
							<if condition="$kw neq ''  && $usersvip[0][vip] egt 4">
							<if condition="$usersvip[0][vip] egt 4 ">
						<li><button class="btn-primarya"><a target="_blank" href="__CONTROLLER__/addc/<?php echo $ret[''];?>">+</a></button></li>
						<else />
								<li></li>
					  	</if>
				</div>
				<br>
				<div><!-- 知识图谱 --></div>
				<!-- 热门超链  kw-->
				<div class="sidebar_pera">
				    <dl>
				        <dt>
				        <a href="" class="more"><span class="more-sign"></a>
				        <br>
				        最新添加   &nbsp |  &nbsp  Latest addition<span class="name-en">
				        </dt>
				        <br>
					    <volist name="listas" id="ac" offset="0" length='10'>
					     <dd class="rlist">
					         <i class="number">{$i}</i>
					         <a target="_blank"  href="{$ac.link}">{$ac.title}</a>
					     </dd>
					    </volist>
				    </dl>
				</div>
				<br>
				<br>
				<br>
					<div class="sidebar_per">
					    <dl>
					        <dt>
					        <a href="" class="more"><span class="more-sign"></a>
					        <br>
					        标签云   &nbsp |  &nbsp   Label<span class="name-en">
					        </dt>
					        <br>
					        <dd class="sidebar_tags">
						        <volist name="tagsArr" id="tags">
						        <a href="" style="margin:0 6px 10px 0">{$tags}</a>
						        </volist>
					        </dd>
					    </dl>
					</div>
					<!--  -->
					<div class="sidebar_yan">
					    <dl>
					        <dt>
					        <a href="" class="more"><span class="more-sign"></a>
					        <br>
					        今日言论   &nbsp |  &nbsp    Today's speech<span class="name-en">
					        </dt>
					        <br>
					        <dd class="">
<!--
 -->						      	<li>
							      		<a href="" target="_blank" data-stat-click="">
								      		<div class="biggie_photo" style="background-image: url(&quot;https://pic.36krcnd.com/avatar/201707/05104204/rqf8pi4yan50gluu.jpg&quot;);"></div>
								      		<div class="biggie_wrapper">
								      			<div class="biggie_name">李彦宏</div>
								      				<p class="biggie_content">百度的竞争对手会收购产品，为产品和用户量付费，但不会为技术付费，只有百度，愿意为技术付费。</p>
								      		</div>
							      		</a>
						      		</li>
						      		<li><a href="http://36kr.com/p/5083600.html" target="_blank" data-stat-click="sidebar.todaycomment.90.click"><div class="biggie_photo" style="background-image: url(&quot;https://pic.36krcnd.com/avatar/201707/14025445/56dzb352qjzyd3oa.jpg&quot;);"></div><div class="biggie_wrapper"><div class="biggie_name">潘石屹</div><p class="biggie_content">让我们建的每一平方米房子，每一个车位都能像共享单车一样，充分利用起来，这就是房地产的未来。今天，你说拥有多少土地，拥有多少房子都不重要，这是旧观念。所以，我要多学点互联网和人工智能的东西。</p></div></a></li>
						      		<li><a href="http://36kr.com/p/5083233.html" target="_blank" data-stat-click="sidebar.todaycomment.89.click"><div class="biggie_photo" style="background-image: url(&quot;https://pic.36krcnd.com/avatar/201707/12094511/b1rljzdrc8oq4jan.jpg&quot;);"></div><div class="biggie_wrapper"><div class="biggie_name">缤果盒子陈子林</div><p class="biggie_content">不要从传统便利的角度来看无人便利店，因为成本结构完全不同，所以整个逻辑也不一样。便利店靠的是人流，我们需要的是刚需驱动的长期固定的用户。</p></div></a></li>
					        </dd>
					    </dl>
					</div>
					<!--  -->
			</div>
		</div>
		<div class="row"> &nbsp</div>
		<div class="row"> &nbsp</div>
		<div class="row"> &nbsp</div>
		<div class="row boderkw2">
			<br>
			<div class="col-md-1"></div>
			<div class="col-md-3"><button class="tupu">相关因基图谱   &nbsp |  &nbsp    Correlation map</button></div>
				<br>
				<br>
				<br>
			<div class="col-md-1"></div>
			<div class="col-md-10">
				<ul style="margin-left: -45px;">
					<li class="tag-itema2" style="color:red; padding-left: 10px; padding-right: 10px;">Hello World ^_^</li>
					<volist name="listasi" id="aci" offset="0" length='20'>
						<li class="tag-item" style="float:left; padding-left: 10px; padding-right: 10px;"><a href="{$aci.link} " target="_blank">{$aci.title}</a></li>
					</volist>
						<if condition="$kw neq ''  && $usersvip[0][vip] egt 3">
							<if condition="$usersvip[0][vip] egt 3 ">
						<li>
							<button class="btn-primarya"><a target="_blank" href="__CONTROLLER__/addi/<?php echo $ret[''];?>">+</a></button></li>
						<else />
								<li></li>
					  	</if>
				</ul>
			</div>
			</div>
			<br />
			<div class="col-md-1">&nbsp</div>
			<div class="col-md-10">
				<ul style="margin-left: -45px;">
					<li class="tag-itema" style="color:green; padding-left: 10px; padding-right: 10px;">Hello Sun @_@</li>
					<volist name="listass" id="acs" offset="0" length='20'>
					<!-- 搜索本站关键词 -->
						<li class="tag-item2" style="float:left; padding-left: 10px; padding-right: 10px;"><a href="?kws={$acs.title}"  value="">{$acs.title}</a></li>
					</volist>
						<if condition="$kw neq ''  && $usersvip[0][vip] egt 2">
							<if condition="$usersvip[0][vip] egt 2 ">
						<li>
							<button class="btn-primarya"><a target="_blank" href="__CONTROLLER__/adds/<?php echo $ret[''];?>">+</a></button></li>
						<else />
								<li></li>
					  	</if>
				</ul>
			</div>
		</div>
		<input type="hidden" name="hidden" id="user_vip" value="{$userinfo.vip}">
		<div class="row"> &nbsp</div>
		<div class="row"> &nbsp</div>
	</div>
		<br>
		<div class="row">
				<div class="col-md-1"></div>
			<div class="col-md-11"><button class="tupu2">广而告知   &nbsp |  &nbsp    Advertisement appreciation</button>  &nbsp &nbsp </div>
			<br>
			<br>
			<br>
		<div class="row">
		</div>
		<div class="row">
			<div class="col-md-1"></div>
			<div class="col-md-11">
				<div class="maintg3">
					<ul class="rm-list2"  style="margin-left: -45px;">
						<volist name="last_at_list" id='ad'>
						<if condition="$ad['ad_id'] gt 0">
						<li>
							<a href="javascript:void('0');" class="view" aid="{$ad.ad_id}"><img src="__SLOGO__/{$ad.img_url}" class="preview" viewnum="{$ad.click_count}" ></a>
							<div class="t">
								<p title="{$ad.title}" ><a href="javascript:void('0');" class="view" aid="{$ad.ad_id}">{$ad.title}</a></p>
								<p class="num3" s>
									<span class="auther"><i class="icon"></i>{$ad.uname} &nbsp &nbsp</span>
									<span class="online" ><i class="icon"></i><font id="viewnum_{$ad.ad_id}">{$ad.click_count}</font></span>
								</p>
								<p class="num3">
									<span class="online ts tousu" id="tousu_{$ad.ad_id}" style="margin-left:5px;" tousu="{$ad.is_tousu}" aid="{$ad.ad_id}" ><font id="tsname_{$ad.ad_id}">{$ad.tousu_n}</font>(<font id="ts_{$ad.ad_id}">{$ad.complain_count}</font>)</span>
									<span> {$ad.add_time|date="Y-m-d",### }</span>
								</p>
							</div>
						</li>
						<else/>
						<li>
								<a href="{:U('Ad/index',array('kws'=>$kw,'position'=>$key))}" style="color:#dddddd;float:left;width:160px;height:100px;border:1px solid #dddddd;    text-align: center;line-height: 100px;border-radius: 4px;
    transition: .2s all linear;" target="_blank">点击添加广告</a>
						</li>
						</if>
					</volist>
					</ul>
				</div>
			</div>
		</div>
		</div>
<div class="pop_mask" style="display: none;"></div>
<div class="pop_content" id="edit_hot_wort" style="display: none;">
    <div class="yj_title">编辑热词
	    <div class="yj_close" id="hot_word_close">X</div>
	</div>
	<div class="yj_content" id="hot_word_content">
		<volist name="site_hot_word" id="vo">
	  		<a href="?kws={$vo.key_words}" class="pop_url">
			  	<div class="kw_item_pop">
			  		<span class="pop_title">{$vo.key_words}</span>
			  		<a href="javascript:" class="yj_drop" onclick="yj_drop(this)"></a>
			  		<a href="javascript:" class="yj_edit" onclick="yj_edit(this)"></a>
			  	</div>
		  	</a>
		</volist>
	</div>
	<div class="yj_add" id="yj_add">
		<span>网站名称</span>
		<input type="text" name="site_name" id="site_name">
		<!-- <span>网址</span> -->
		<!-- <input type="text" name="site_url" id="site_url"> -->
		<button id="add_btn">添加</button>
	</div>
	<div class="yj_add" id="yj_edit" style="display: none;">
		<span>网站名称</span>
		<input type="text" name="edit_name" id="edit_name">
		<span style="display: none;">网址</span>
		<input type="text" name="edit_url" id="edit_url" style="display: none;">
		<button id="edit_btn">保存</button>
	</div>
</div>
<div class="pop_content" id="edit_user_block" style="display: none;">
    <div class="yj_title">编辑模块
	    <div class="yj_close" id="block_close">X</div>
	</div>
	<div class="yj_content" id="block_content">
		<volist name="user_block" id="vo">
			  	<div class="kw_item_pop1">
			  		<span class="pop_title1">{$vo.block_title}</span>
			  		<a href="javascript:" class="yj_drop1" data="{$vo.block_id}" onclick="yj_drop1(this)"></a>
			  		<a href="javascript:" class="yj_edit1" data="{$vo.block_id}" onclick="yj_edit1(this)"></a>
			  	</div>
		</volist>
	</div>
	<div class="yj_add" id="block_add">
		<span>模块名称</span>
		<input type="text" name="block_add_name" id="block_add_name">
		<button id="add_btn1">添加</button>
	</div>
	<div class="yj_add" id="block_edit" style="display: none;">
		<span>模块名称</span>
		<input type="text" name="block_edit_name" id="block_edit_name">
		<button id="edit_btn1">保存</button>
	</div>
</div>

<!--本页面相关js  -->
<script type="text/javascript">
	function yj_collection(slin_id){
		var sid = slin_id;
		var vip =  $('#user_vip').val();
		if (vip < 1) {
			alert("VIP1以上用户才可以使用收藏功能！");
			return 0;
		}
		$.ajax({
		type: "post",
		url: "/index.php/home/search/col",
		datatype:"json",
		data: {'sid':sid},
		success: function(res){
			 if (res == 1) {
			 	alert('收藏成功');
			 	var item_id  = 'i'+slin_id;
			 	$("#"+item_id).attr('src','/Public/Home/images/logo/collected.png');
			 	var count  = $("#col_count").html();
				count++;
				$("#col_count").html(count);
				var count2  = $("#c"+slin_id).html();
				count2++;
				$("#c"+slin_id).html(count2);
                                $("#"+item_id).attr('onclick','').on('click',function(){yj_de_collection(slin_id);})
			 }else{
			 	alert('你已经收藏过了');
			 }
		},
		error: function(res){
			alert('网络错误，请重试！');
		}
		});
	}
	//浏览量增加
	$('.view').on('click',function(){
		var viewnum = $(this).attr('viewnum');
		var aid = $(this).attr('aid');
		$.ajax({
		type: "post",
		url: "/index.php/home/Ad/view",
		datatype:"json",
		data: {'aid':aid},
		success: function(res){
			if(res.error == 0){
				window.open(res.url);
				// $('#viewnum_'+res.ad_id).html(res.click_count);
				// var el = document.createElement("a");
				// document.body.appendChild(el);
				// el.href = res.url; //url 是你得到的连接
				// el.target = '_new'; //指定在新窗口打开
				// el.click();
				// document.body.removeChild(el);
			}else{
				alert('广告异常！');
			}
		},
		error: function(res){
			alert('网络错误，请重试！');
		}
		});
	})
	//投诉增加
	$('.tousu').on('click',function(){
		var is_tousu = $(this).attr('tousu');
		var aid = $(this).attr('aid');
		$.ajax({
		type: "post",
		url: "/index.php/home/Ad/complain",
		datatype:"json",
		data: {'aid':aid,is_tousu},
		success: function(res){
				if(res.error == 0){
					$('#ts').html(res.complain_count);
					if(res.is_tousu == 0){
						$('#tousu_'+res.ad_id).attr('tousu',1);
						$('#tsname_'+res.ad_id).html('取消投诉');
					}else{
						$('#tousu_'+res.ad_id).attr('tousu',0);
						$('#tsname_'+res.ad_id).html('投诉');
					}
					$('#ts_'+res.ad_id).html(res.complain_count);
				}
				alert(res.msg);
		},
		error: function(res){
			alert('网络错误，请重试！');
		}
		});
	})
	// function change_tab(item_id){
	// 	$('#search_res').css('display','none');
	// 	$('#my_col').css('display','none');
	// 	$('#my_add').css('display','none');
	// 	$('#'+item_id).css('display','block');
	// }
	function yj_de_collection(slin_id){
		if (confirm('确定要取消收藏吗？')) {
			var sid = slin_id;
			$.ajax({
			type: "post",
			url: "/index.php/home/search/de_col",
			datatype:"json",
			data: {'sid':sid},
			success: function(res){
				var item_id  = 'i'+slin_id;
				//$("#"+item_id).remove();
				var count  = $("#col_count").html();
				count--;
				$("#col_count").html(count);
				$("#"+item_id).attr('src','/Public/Home/images/logo/collection.png');
				var count2  = $("#c"+slin_id).html();
				count2--;
				$("#c"+slin_id).html(count2);
				$("#"+item_id).attr('onclick','').on('click',function(){yj_collection(slin_id);})
			},
			error: function(res){
				alert('网络错误，请重试！');
			}
			});
		}
	}
	//弹出层列表临时下标
	var crt_edit_index = -1;
	var crt_block_index = -1;
	var temp_block_id = '';
	var temp_word_id = '';
	//弹出层显示
	$('.edit_item').click(function(){
		$('.yj_com').each(function(index,elememt){
			if (elememt.getAttribute('class') == 'yj_com cur') {
				temp_block_id = elememt.getAttribute('id');
			}
		});
		$('.pop_mask').css('display','block');
		$('#edit_hot_wort').css('display','block');
	});
	//热词弹出层关闭
	$('#hot_word_close').click(function(){
		$('.pop_mask').css('display','none');
		$('#edit_hot_wort').css('display','none');
	});
	//热词弹出层追加
	$('#add_btn').click(function(){
		//获取数据
		var site_name = $('#site_name').val();
		//var site_url = $('#site_url').val();
		var site_url = site_name;
		var block_id = temp_block_id;
		//判断
		if (site_name == '') {
			alert('输入数据不能为空');
			return false;
		}
		$.ajax({
			type:'post',
			url:'/index.php/home/search/add_hot_word',
			datatype:'json',
			data:{'site_name':site_name,'site_url':site_url,'block_id':block_id},
			success:function(data){
				var obj = JSON.parse(data);
				if (obj.err == 1) {
					alert(obj.msg);
					return;
				}
				if (site_url.substr(0,4) != 'http') {
					site_url = '?kws='+site_url;
				}
				//编辑页面追加
				$('#hot_word_content').append("<a href='"+site_url+"' class='pop_url'><div class='kw_item_pop'><span class='pop_title'>"+site_name+"</span><a href='javascript:' class='yj_drop' data = '"+obj.word_id+"' onclick='yj_drop(this)'></a><a href='javascript:' class='yj_edit' data = '"+obj.word_id+"' onclick='yj_edit(this)'></a></div></a>");
				//页面追加
				$('.edit_item').before("<a href='"+site_url+"' class = 'list_url'><div class='kw_item'>"+site_name+"</div></a>");
				//数据清空
				$('#site_name').val('');
				//$('#site_url').val('');
			},
			error:function(){
				alert('网络错误，请重试！');
			}
		});
	});
	//热词弹出层的添加按钮事件
	function yj_edit(item){
		var index = $('.yj_edit').index(item);
		crt_edit_index = index;
		var title = $('.pop_title').get(index).innerHTML;
		var url_item = $('.pop_url').get(index).href;
		temp_word_id = item.getAttribute('data');
		$('#edit_name').val(title);
		//$('#edit_url').val(url_item);
		$('#yj_add').css('display','none');
		$('#yj_edit').css('display','block');
	}
	//热词弹出层编辑按钮事件
	$('#edit_btn').click(function(){
		//获取数据
		var site_name = $('#edit_name').val();
		//var site_url = $('#edit_url').val();
		var site_url = site_name;
		var index = crt_edit_index;
		var word_id = temp_word_id;
		var res_url = '/index.php/home/search/?kws='+site_url;
		$.ajax({
			type:'post',
			url:'/index.php/home/search/edit_hot_word',
			datatype:'json',
			data:{'site_name':site_name,'site_url':site_url,'word_id':word_id},
			success:function(data){
				var obj = JSON.parse(data);
				if (obj.err == 1) {
					alert(obj.msg);
					return;
				}
				//弹出层数据替换
				$('.pop_title').get(index).innerHTML = site_name;
				$('.pop_url').get(index).href = res_url;
				//页面数据替换
				$('.kw_item').get(index).innerHTML = site_name;
				$('.list_url').get(index).href = res_url;
				//临时下标还原
				crt_edit_index = -1;
				temp_word_id = '';
				//隐藏编辑按钮显示添加按钮
				$('#yj_add').css('display','block');
				$('#yj_edit').css('display','none');
				//内容清空
				$('#edit_name').val('');
				//$('#edit_url').val('');
			},
			error:function(){
				alert('网络错误，请重试！');
			}
		});
	});
	//热词弹出层删除按钮事件
	function yj_drop(item){
		var index = $('.yj_drop').index(item);
		temp_word_id = item.getAttribute('data');
		if (confirm('确定要删除吗？')) {
			$.ajax({
				type:'post',
				url:'/index.php/home/search/del_hot_word',
				datatype:'json',
				data:{'word_id':temp_word_id},
				success:function(data){
					var obj = JSON.parse(data);
					if (obj.err == 1) {
						alert(obj.msg);
						return;
					}
					$('.kw_item_pop').get(index).remove();
					$('.list_url').get(index).remove();
					//隐藏编辑按钮显示添加按钮
					$('#yj_add').css('display','block');
					$('#yj_edit').css('display','none');
					//内容清空
					$('#edit_name').val('');
					//$('#edit_url').val('');
				},
				error:function(){
					alert('网络错误，请重试！');
				}
			});
		}
	}
	//添加模块事件
	$('#yj_plus').click(function(){
		$('.pop_mask').css('display','block');
		$('#edit_user_block').css('display','block');
	});
	function yj_log(val){
		console.log(val);
	}
	//模块弹出层操作
	//模块弹出层关闭
	$('#block_close').click(function(){
		$('.pop_mask').css('display','none');
		$('#edit_user_block').css('display','none');
	});
	//模块弹出删除
	function yj_drop1(item){
		var index = $('.yj_drop1').index(item);
		temp_block_id = item.getAttribute('data');
		if (confirm('确定要删除吗？')) {
			$.ajax({
			    url: '/index.php/home/search/del_block',
			    type: 'post',
			    dataType: 'json',
			    data: {
			        'block_id':temp_block_id
			    },
			    success: function(data){
			    	if (data.err == 1) {
			    		alert(data.msg);
			    		return;
			    	}
			    	$('.kw_item_pop1').get(index).remove();
					$('.yj_com').get(index+2).remove();
					//隐藏编辑按钮显示添加按钮
					$('#block_add').css('display','block');
					$('#block_edit').css('display','none');
					temp_block_id = 0;
					$('#block_add_name').val('');
			    },
			    error: function(){
			    }
			});
		}
	}
	//模块弹出编辑
	function yj_edit1(item){
		//数据获取
		var index = $('.yj_edit1').index(item);
		crt_block_index = index;
		temp_block_id = item.getAttribute('data');
		var title = $('.pop_title1').get(index).innerHTML;
		$('#block_edit_name').val(title);
		$('#block_add').css('display','none');
		$('#block_edit').css('display','block');
	}
	//模块编辑保存
	$('#edit_btn1').click(function(){
		//获取数据
		var block_name = $('#block_edit_name').val();
		var index = crt_block_index;
		var block_id = temp_block_id;
		$.ajax({
		    url: '/index.php/home/search/edit_block',
		    type: 'post',
		    dataType: 'json',
		    data: {
		        'block_id':temp_block_id,'block_name':block_name
		    },
		    success: function(data){
		    	if (data.err == 1) {
		    		alert(data.msg);
		    		return;
		    	}
		    	//弹出层数据替换
				$('.pop_title1').get(index).innerHTML = block_name;
				//页面数据替换
				$('.yj_com').get(index+2).innerHTML = block_name;
				//临时下标还原
				crt_block_index = -1;
				//隐藏编辑按钮显示添加按钮
				$('#block_add').css('display','block');
				$('#block_edit').css('display','none');
				temp_block_id = 0;
				$('#block_add_name').val('');
		    },
		    error: function(){
		    }
		});
	});
	//模块弹出层追加
	$('#add_btn1').click(function(){
		//获取数据
		var block_name = $('#block_add_name').val();
		if (block_name != '') {
			$.ajax({
			    url: '/index.php/home/search/add_block',
			    type: 'post',
			    dataType: 'json',
			    data: {
			        'block_name':block_name
			    },
			    success: function(data){
			    	if (data.err == 1) {
			    		alert(data.msg);
			    		return;
			    	}
			         //编辑页面追加
					$('#block_content').append("<div class='kw_item_pop1'><span class='pop_title1'>"+block_name+"</span><a href='javascript:' class='yj_drop1' data='"+data.block_id+"' onclick='yj_drop1(this)'></a><a href='javascript:' class='yj_edit1' data='"+data.block_id+"' onclick = 'yj_edit1(this)'></a></div>");
					//页面追加
					$('#yj_plus').before("<a href='javascript:'><li class='yj_com' id = 'blk_"+data.block_id+"' onclick='yj_tab(this)'>"+block_name+"</li></a>");
					//隐藏编辑按钮显示添加按钮
					$('#block_add').css('display','block');
					$('#block_edit').css('display','none');
					temp_block_id = 0;
					$('#block_add_name').val('');
			    },
			    error: function(){
			    }
			});
		}
	});
	//模块tab切换
	function yj_tab(item){
		var block_id = item;
		$.ajax({
			url:'/index.php/home/search/change_tab',
			type:'POST',
			dataType:'json',
			data:{
				'block_id':block_id
			},
			success:function(data){
				//判断
				if (data.err == 1) {
					alert(data.msg);
					return;
				}
				//清空热词框
				$('.list_url').remove();
				$('.kw_item_pop').remove();
				$('.pop_url').remove();
				//热词框写入新词
				for (var i = 0; i < data.content.length; i++) {
					//页面数据
					$('#edit_item').before("<a href='"+data.content[i].yj_url+"' class = 'list_url'><div class = 'kw_item'>"+data.content[i].name+"</div>");
					//弹出层数据
					$('#hot_word_content').append("<a href='"+data.content[i].yj_url+"' class='pop_url'><div class='kw_item_pop'><span class='pop_title'>"+data.content[i].name+"</span><a href='javascript:' class='yj_drop' data = '"+data.content[i].word_id+"' onclick='yj_drop(this)'></a><a href='javascript:' class='yj_edit' data = '"+data.content[i].word_id+"' onclick='yj_edit(this)'></a></div></a>");
				}
				//切换tab状态
				$('.yj_com').each(function(index,elememt){
					elememt.setAttribute('class','yj_com');
					if (elememt.id == data.ele_id) {
						elememt.setAttribute('class','yj_com cur');
					}
				});
				//编辑按钮显示隐藏
				if (data.editable == 1) {
					$('#edit_item').css('display','block');
				}else{
					$('#edit_item').css('display','none');
				}
			},
			error:function(){
				//alert('网络错误，请重试！');
			}
		});
	}

	function yj_refresh(item){
		var item_id = item.id;
		var id = item_id.substr(4);
		var sp = $('#sp_'+id);
		var ref = $('#ref_'+id);
		//ajax拉数据
		$.ajax({
			url:'/index.php/home/search/refresh_near_list',
			type:'POST',
			dataType:'json',
			data:{
				'link_id':id
			},
			success:function(data){
				if (data.err == 1) {
					alert(data.msg);
					return;
				}
				$('#div_'+id).empty();
				$('#div_'+id).append(sp);
				for (var i = 0; i < data.content.length; i++) {
					var temp_pos = i+1;
					$('#div_'+id).append("<div style='width: 64px;float: left;line-height: 1;padding-top: 10px;text-align: center;'><a href='javascript:' class='btn btn-success btn-sm btn-outline btn-round  yj_bg_"+temp_pos+"' style='overflow: hidden;text-overflow:ellipsis;white-space: nowrap;color: white;width: 64px;'>"+data.content[i].title+"</a><span>"+data.content[i].col_count+"</span></div>");
				}
				$('#div_'+id).append('&nbsp;&nbsp;&nbsp;');
				$('#div_'+id).append(ref);
			},
			error:function(){

			}
		});
	}
	//默认选中第一个
	var logined = $('#logined').val();
	console.log(logined>0);
	if (logined > 0) {
		var id = $('.yj_com')[0].id;
		yj_tab(id);
	}
</script>
<!--  -->
</body>
</html>